import network from './request'
import apiList from './apiList'


export const collectDynamic = (data, params) => {
    return network.request({
        url: apiList.art.collectDynamic,
        data,
        ...params
    });
}
export const editDynamic = (data, params) => {
    return network.request({
        url: apiList.art.editDynamic,
        data,
        ...params
    });
}
export const getDynamicList = (data, params) => {
    return network.request({
        url: apiList.art.getDynamicList,
        data,
        ...params
    });
}

export const getDynamicInfo = (data, params) => {
    return network.request({
        url: apiList.art.getDynamicInfo,
        data,
        ...params
    });
}

export const getDynamicIndustrys = (data, params) => {
    return network.request({
        url: apiList.art.getDynamicIndustrys,
        data,
        ...params
    });
}

export const editUserIndustry = (data, params) => {
    return network.request({
        url: apiList.art.editUserIndustry,
        data,
        ...params
    });
}

export const praiseDynamic = (data, params) => {
    return network.request({
        url: apiList.art.praiseDynamic,
        data,
        ...params
    });
}

export const shareDynamic = (data, params) => {
    return network.request({
        url: apiList.art.shareDynamic,
        data,
        ...params
    });
}

export const userHisLeave = (data, params) => {
    return network.request({
        url: apiList.art.userHisLeave,
        data,
        ...params
    });
}

export const createDynamic = (data, params) => {
    return network.request({
        url: apiList.art.createDynamic,
        data,
        ...params
    });
}

export const delDynamic = (data, params) => {
    return network.request({
        url: apiList.art.delDynamic,
        data,
        ...params
    });
}

export const getDynamicDraft = (data, params) => {
    return network.request({
        url: apiList.art.getDynamicDraft,
        data,
        ...params
    });
}

export const editDynamicDraft = (data, params) => {
    return network.request({
        url: apiList.art.editDynamicDraft,
        data,
        ...params
    });
}

export const getUserShareInfo = (data, params) => {
    return network.request({
        url: apiList.art.getUserShareInfo,
        data,
        ...params
    });
}

export const editDynamicIndustrys = (data, params) => {
    return network.request({
        url: apiList.art.editDynamicIndustrys,
        data,
        ...params
    });
}

export const getDynamicVideoList = (data, params) => {
    return network.request({
        url: apiList.art.getDynamicVideoList,
        data,
        ...params
    });
}

export const updateShareTemp = (data, params) => {
    return network.request({
        url: apiList.art.updateShareTemp,
        data,
        ...params
    });
}

export const getWxAppCode = (data, params) => {
    return network.request({
        url: apiList.art.getWxAppCode,
        data,
        ...params
    });
}

export const aiAnswer = (data, params) => {
    return network.request({
        url: apiList.art.aiAnswer,
        data,
        ...params
    });
}

export const createWxPubCode = (data, params) => {
    return network.request({
        url: apiList.art.createWxPubCode,
        data,
        ...params
    });
}
